package adapter;

public class DuckTest 
{
	public static void main(String args[])
	{
		Duck duck=new DuckDuck();
		Turkey turkey=new TurkeyTurkey();
		TurkeyAdapter curcan=new TurkeyAdapter(turkey);
		System.out.println("Comportamentul curcanului adaptat la rata");
		curcan.flyd();
		curcan.quack();
		DuckAdapter rata=new DuckAdapter(duck);
		System.out.println("Comportamentul ratei adaptat la curcan");
		rata.fly();
		rata.gobble();
		
	}

}
